package com.eascs.web.o2o.scheduler.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the customer_basic_info database table.
 * 
 */
@Entity
@Table(name="customer_basic_info")
@NamedQuery(name="CustomerBasicInfo.findAll", query="SELECT c FROM CustomerBasicInfo c")
public class CustomerBasicInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="customer_id")
	private String customerId;

	private int age;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_date")
	private Date createDate;

	private String creator;

	@Column(name="customer_code")
	private String customerCode;

	@Column(name="customer_family_name")
	private String customerFamilyName;

	@Column(name="customer_given_name")
	private String customerGivenName;

	@Column(name="customer_name")
	private String customerName;

	@Column(name="customer_name_pinyin")
	private String customerNamePinyin;

	@Column(name="customer_sd")
	private String customerSd;

	@Column(name="customer_sd_name")
	private String customerSdName;

	@Column(name="customer_sd_no")
	private int customerSdNo;

	@Column(name="customer_source")
	private byte customerSource;

	@Column(name="customer_type")
	private String customerType;

	@Column(name="id_number")
	private String idNumber;

	@Column(name="id_type")
	private String idType;

	@Column(name="is_new_customer")
	private byte isNewCustomer;

	@Column(name="marital_status")
	private byte maritalStatus;

	@Column(name="mate_id")
	private String mateId;

	@Column(name="mobile_number")
	private String mobileNumber;

	private String modifier;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="modify_date")
	private Date modifyDate;

	@Column(name="number_of_loans")
	private int numberOfLoans;
	
	@Temporal(TemporalType.DATE)
	@Column(name="first_loan_time")
	private Date firstLoanTime;

	private String sex;

	private String wechat;

	public CustomerBasicInfo() {
	}

	public String getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public int getAge() {
		return this.age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getCustomerFamilyName() {
		return this.customerFamilyName;
	}

	public void setCustomerFamilyName(String customerFamilyName) {
		this.customerFamilyName = customerFamilyName;
	}

	public String getCustomerGivenName() {
		return this.customerGivenName;
	}

	public void setCustomerGivenName(String customerGivenName) {
		this.customerGivenName = customerGivenName;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerNamePinyin() {
		return this.customerNamePinyin;
	}

	public void setCustomerNamePinyin(String customerNamePinyin) {
		this.customerNamePinyin = customerNamePinyin;
	}

	public String getCustomerSd() {
		return this.customerSd;
	}

	public void setCustomerSd(String customerSd) {
		this.customerSd = customerSd;
	}

	public String getCustomerSdName() {
		return this.customerSdName;
	}

	public void setCustomerSdName(String customerSdName) {
		this.customerSdName = customerSdName;
	}

	public int getCustomerSdNo() {
		return this.customerSdNo;
	}

	public void setCustomerSdNo(int customerSdNo) {
		this.customerSdNo = customerSdNo;
	}

	public byte getCustomerSource() {
		return this.customerSource;
	}

	public void setCustomerSource(byte customerSource) {
		this.customerSource = customerSource;
	}

	public String getCustomerType() {
		return this.customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getIdType() {
		return this.idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public byte getIsNewCustomer() {
		return this.isNewCustomer;
	}

	public void setIsNewCustomer(byte isNewCustomer) {
		this.isNewCustomer = isNewCustomer;
	}

	public byte getMaritalStatus() {
		return this.maritalStatus;
	}

	public void setMaritalStatus(byte maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getMateId() {
		return this.mateId;
	}

	public void setMateId(String mateId) {
		this.mateId = mateId;
	}

	public String getMobileNumber() {
		return this.mobileNumber;
	}

	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}

	public String getModifier() {
		return this.modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public Date getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public int getNumberOfLoans() {
		return this.numberOfLoans;
	}

	public void setNumberOfLoans(int numberOfLoans) {
		this.numberOfLoans = numberOfLoans;
	}
	
	public Date getFirstLoanTime() {
		return firstLoanTime;
	}

	public void setFirstLoanTime(Date firstLoanTime) {
		this.firstLoanTime = firstLoanTime;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getWechat() {
		return this.wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

}